exports.search_organization_course_list = function(req,res) {

    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;

    //最终结果
    var resultData = {};

    //任务流创建
    async.waterfall([

        //获取机构发放的代金券
        function(cb){

            R.SEND_HTTP(
                req,
                {
                    url    : CORE_APIConfig.coreAPI.search_organization_course + "/oc_oid/" + restfulParams.oc_oid +"/sort_order/oc_create_time-desc" ,
                    method : 'POST',
                    data   : {
                        fields : [
                            "oc_id",
                            "oc_title",
                        ].join(",")
                    }
                },
                function (err, data) {

                    resultData.courseList = data.data;

                    cb();
                }
            );
        },

    ],function(err, result){

        //返回最终拼接结果
        RES.response(res,true,resultData);

    });

}
